/**
 * Prints a triangle of numbers
 */
public class PrintNumberTriangle {

    public static void main(String[] args) {


	// --------------------------------
	// ----- ENTER YOUR CODE HERE -----
	// --------------------------------

	for (int i = 1; i <= 5; i++) {
	    for (int j = 1; j <= (5 - i); j++) {
	        System.out.print(" ");
	       }
	    for (int j = 1; j <= i; j++) {
	        System.out.print(i);
	       }
	    System.out.println();
	   }

	// --------------------------------
	// --------- END USER CODE --------
	// --------------------------------


    }

}